package com.learn.spring;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

/**
 *
 *
 * @author zhongshitao
 * @date 2020/9/23 2:10 下午
 */
@ComponentScan(basePackageClasses = {MyBeanPostProcesser.class})
public class MainConfigOfLife {


    @Bean(initMethod = "init", destroyMethod = "destory")
    public Car car() {
        return new Car();
    }


}
